﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using PccCommonForC;
using bs_ShowRoom;

namespace ShowRoom.admin
{
    public partial class ViewIntroduction : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GetIntro();
            }
        }
        private void GetIntro()
        {
            DataTable dt = GetMenuDetail();
            if (dt.Rows.Count > 0)
            {
                lblintro.Text = dt.Rows[0]["content"].ToString().Trim();
            }
        }
        private DataTable GetMenuDetail()
        {
            bs_info mybs = new bs_info(ConfigurationManager.ConnectionStrings["ShowRoomConnectionString"].ToString());
            PccMsg myMsg = new PccMsg();

            DataSet ds = mybs.DoReturnDataSet("GETINTRODUCTION", myMsg.GetXmlStr, "");
            DataTable dt = new DataTable();
            if (ds.Tables.Count > 0)
                dt = ds.Tables[0];
            return dt;
        }
    }
}